Polling All Rows in a Group Grid Control

Using script, the rows in a Group Grid control can be iterated and actions can be performed based on their attributes or values. The following script shows, in general, how to poll the facility for each row in a Group Grid control.

Copy
Polling All Rows
Sub PollButton_EventClick()
Dim This : Set This = PollButton
    numRows = gridControl.X.GetRows()
    EnableLiveMode(True)
    For i = 0 To numRows - 1
        SendUisCommand "MYSITE.UIS",gridControl.X.RowFacility(i),"Poll"
    Next
End Sub